package com.neulogistics.contrib.procuredcenter.api.application.integrationevent.publish;

import com.blackto.lib.eventbus.event.IntegrationEvent;
import com.neulogistics.contrib.procuredcenter.domain.model.valueobject.PurchaseItem;
import lombok.Setter;

@Setter
public class PurchaseOrderCreatedIntegrationEvent extends IntegrationEvent {
    /**
     * 库房id
     */
    public Integer warehouseId;

    /**
     * 采购项
     */
    public PurchaseItem goodsItem;

    public PurchaseOrderCreatedIntegrationEvent(Long eventId) {
        super(eventId);
    }

    public PurchaseOrderCreatedIntegrationEvent(Long eventId, Integer warehouseId, PurchaseItem goodsItem) {
        super(eventId);
        this.warehouseId = warehouseId;
        this.goodsItem = goodsItem;
    }
}
